﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Forum.DataBase;

namespace Forum.Common.Messages
{
    [Serializable]
    public class Page : Message
    {
        /*
         * the current page to be shown
         */
        public ForumPage page { get; set; }

        public Page(ForumPage page)
        {
            this.page = page;
        }

        public override string GetType()
        {
            return "Page";
        }
        public int lengh()
        {
            return this.page.subs.Count;
        }
    }
}
